package com.mfangsoft.zhuangjialong.integration.fileupload.mapper;

import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
import com.mfangsoft.zhuangjialong.integration.fileupload.model.InterfaceManagementTemplate;
@WriterRepository
public interface InterfaceManagementTemplateMapper {
    /**
     * 通过主键删除  
     *
     * @MLTH_generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 插入数据  
     *
     * @MLTH_generated
     */
    int insert(InterfaceManagementTemplate record);

    int insertSelective(InterfaceManagementTemplate record);

    /**
     * 通过主键查询数据 
     *
     * @MLTH_generated
     */
    InterfaceManagementTemplate selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(InterfaceManagementTemplate record);

    /**
     * 通过主键更新数据  
     *
     * @MLTH_generated
     */
    int updateByPrimaryKey(InterfaceManagementTemplate record);

    /**
     * 判断是否是第一次上传
     * @param user_id
     * @return
     */
    Map<String,Object> selectIsFirstUpload(Long user_id);

	InterfaceManagementTemplate selectOneByGroupId(Long user_id);
}